package com.xzbd.utils;

import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;

public class LayoutUtil {
	
	public static void clearMargin(GridData gridData) {
		gridData.verticalSpan = 0;
		gridData.horizontalSpan = 0;
	}
	
	public static GridLayout clearMarin(GridLayout gridLayout) {
		gridLayout.marginLeft = 0;
		gridLayout.marginTop = 0;
		gridLayout.marginRight = 0;
		gridLayout.marginBottom = 0;
		gridLayout.marginHeight = 0;
		gridLayout.marginWidth = 0;
		gridLayout.horizontalSpacing = 0;
		gridLayout.verticalSpacing = 0;
		return gridLayout;
	}

}
